package org.polaris.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    //分页
    private Integer currentPage;
    private Integer pageSize;
    //高级查询
    private String keyword;

    //javabean 取值
    public Integer getPage(){
        return (currentPage-1)*pageSize;
    }
}
